package com.yjc.springcloud.service;

import com.yjc.springcloud.bean.CommotResult;
import com.yjc.springcloud.bean.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author shkstart
 * @create 2022-07-23 11:26
 */
@Service
@FeignClient("CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignService {

    @GetMapping("/get/payment/{id}")
    public CommotResult<Payment> addPayment(@PathVariable("id") Long id);

    @GetMapping("/payment/timeout")
    public String timeOuting();
}
